'use strict';

const log = require('npmlog')

log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info'; // 自定义等级
log.heading = "pengsg"; //添加自定义头
log.addLevel('success',2000,{fg:'green',}) //添加自定义方法
log.addLevel('verbose', 1000, { fg: 'cyan', bg: 'black' }, '[debug info]')

module.exports = log;



